﻿namespace dPet.Domain.Specifications
{
	using dPet.Domain.Models;
	using Hangerd.Specification;

	public class SaleOrderSpecifications
	{
		public static Specification<SaleOrder> IdEquals(string id)
		{
			return new DirectSpecification<SaleOrder>(so => so.Id == id);
		}

		public static Specification<SaleOrder> HospitalIdEquals(string hospitalId)
		{
			return new DirectSpecification<SaleOrder>(so => so.HospitalId == hospitalId);
		}

		public static Specification<SaleOrder> OrderNumberEquals(string orderNumber)
		{
			return new DirectSpecification<SaleOrder>(so => so.OrderNumber == orderNumber);
		}

		public static Specification<SaleOrder> StatusEquals(OrderStatus status)
		{
			return new DirectSpecification<SaleOrder>(so => so.Status == status);
		}
	}
}
